const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  devServer: {
    headers: {
      'Access-Control-Allow-Origin': '*',
    },
    proxy: {
      "/api": {
        target: "http://www.webxml.com.cn/",
        changeOrigin: true,
        pathRewrite: {
          '^/api': ''
        }
      },
      "/x/v2/splash/brand/list": {
        target: "http://app.bilibili.com",
        changeOrigin: true,
        pathRewrite: {
          '^/x/v2/splash/brand/list': ''
        }
      },
      "/web/generic/check/nickname": {
        target: "http://app.bilibili.com",
        changeOrigin: true,
        pathRewrite: {
          '^/web/generic/check/nickname': ''
        }
      },

    }
  }


})
